//
//  MainSelectTypeView.h
//  ToEnjoyDemo
//
//  Created by 薛小刚 on 2017/11/29.
//  Copyright © 2017年 薛小刚. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "B_Enum.h"

@protocol MainSelectTypeViewDelegate <NSObject>

- (void) mainSelectTypeWithBtn:(UIButton *) btn;

@end

@interface MainSelectTypeView : UIView

- (instancetype) initWithFrame:(CGRect)frame withDataArray:(NSArray *) array;

@property (nonatomic, weak) id <MainSelectTypeViewDelegate> delegate;

@property (nonatomic, assign) int selectIndex;


@property (nonatomic, assign) B_SelectType type;

/**
 设置指示标杆

 @param pointX 还未计算的点x
 */
- (void) setFrameOfLineView:(CGFloat) pointX;

/**
 设置选中的按钮

 @param pointX 还未计算的点x
 */
- (void) setSelectBtn:(CGFloat) pointX;

@end
